import type { ModuleItem } from "./index.d";
import { createCommand } from '../../commandHelper';

const moduleId = 'HelpForm';

/**
 * @description: 获取系统名称
 */
export const getSystemName = createCommand<never, string>(moduleId, { commandName: "GetSystemName", requestMethod: "GET" });

/**
 * @description: 获取系统模块列表
 */
export const getSystyemModules = createCommand<never, ModuleItem[]>(moduleId, { commandName: "GetSystyemModules", requestMethod: "GET" });

/**
 * @description: 获取系统版本信息
 */
export const getSystyemVersionInfo = createCommand<never, { name: string; version: string }[]>(moduleId, { commandName: "GetSystyemVersionInfo", requestMethod: "GET" });

/**
 * @description: 获取说明文档文件流
 */
export const getPreviewPDF = createCommand<never, Blob>(moduleId, { commandName: "GetPreviewPDF", requestMethod: "GET", responseType: "blob" });
